import request from "@/utils/requiest";

// 登录
export const loginApi = (data: { userName: string, password: string }) => {
    return request.post<{
        token: string,
        refreshToken: string
    }>('/user/login', data)
}

// 注册
export const registerApi = (data: { userName: string, password: string }) => {
    return request.post('/user/register', data)
}